
package org.codehaus.janino;

import j2me.util.collections.Iterator;
import org.codehaus.janino.util.iterator.IteratorCollection;
import org.codehaus.janino.util.resource.MultiResourceFinder;
import org.codehaus.janino.util.resource.ResourceFinder;


/**
 * A {@link org.codehaus.janino.util.resource.ResourceFinder} that examines a set
 * of {@link org.codehaus.janino.util.resource.ResourceFinder}s lazily as it
 * searches for resources.
 *
 * @see org.codehaus.janino.util.iterator.IteratorCollection
 */
public class LazyMultiResourceFinder extends MultiResourceFinder {

    /**
     * @param resourceFinders delegate {@link ResourceFinder}s
     */
    public LazyMultiResourceFinder(Iterator resourceFinders) {
        super(new IteratorCollection(resourceFinders));
    }
}
